//
//  TalkStyleTwoTableViewCell.m
//  Toyohu
//
//  Created by Heige on 16/5/10.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "TalkStyleTwoTableViewCell.h"
#import "TalkModel.h"
@implementation TalkStyleTwoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(TalkModel *)model
{
    _model = model;
    _name.text = model.username;
    NSRange range = NSMakeRange(0, 10);
    NSString *str = [model.caTime substringWithRange:range];
    _time.text = str;
    _viewNum.text = [NSString stringWithFormat:@"%ld",(long)model.caViewNum];
}

@end
